//
//  LRHttpManager.h
//  Anyair
//
//  Created by karlcool on 14-5-24.
//  Copyright (c) 2014年 Karlcool. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface LRHttpManager : NSObject

+(LRHttpManager *)createHttpManager;

//登陆
- (NSDictionary*)logInUserByPhone:(NSString*)phone AndPassword:(NSString*)password;
//注册
- (NSDictionary*)signInUserByPhone:(NSString*)phone AndPassword:(NSString*)password AndVerifycode:(NSString*)vCode;
//发送验证码 0注册1找回
- (NSDictionary*)sendAuthToPhone:(NSString*)phone AndType:(NSString*)type;
//重设密码
- (NSDictionary*)resetPasswordByPhone:(NSString*)phone AndNewPassword:(NSString*)newPassword AndVerifycode:(NSString*)vCode;
//环境质量提示
- (NSDictionary*)getHintByPhone:(NSString*)phone;

//目的地数据查询 type:hcho,c02,pm25
- (NSDictionary*)queryPlaceByPhone:(NSString*)phone AndLongitude:(NSString*)longitude AndLatitude:(NSString*)latitude AndType:(NSString*)type;

//周边数据查询 type:hcho,c02,pm25
- (NSDictionary*)queryPOIByPhone:(NSString*)phone AndLongitude:(NSString*)longitude AndLatitude:(NSString*)latitude;

//历史数据查询 type:hcho,c02,pm25
- (NSDictionary*)queryHistoryByPhone:(NSString*)phone AndTime:(NSString*)time AndType:(NSString*)type AndPage:(NSString*)page;

//甲醛单次检测数据上传
//phoneno	手机号码
//longitude	经度
//latitude	纬度
//celsius	温度
//dampness	湿度
//address	定位位置
//placediy	用户输入位置
//hcho	检测数据1
//deviceversion	硬件版本
- (NSDictionary*)updateHCHOByPhone:(NSString*)phone AndLongitude:(NSString*)longitude AndLatitude:(NSString*)latitude AndCelsius:(NSString*)celsius AndDampness:(NSString*)dampness AndAddress:(NSString*)address AndPlacediy:(NSString*)placediy AndHCHO:(NSString*)hcho;

//CO2单次检测数据上传
//phoneno	手机号码
//longitude	经度
//latitude	纬度
//celsius	温度
//dampness	湿度
//address	定位位置
//placediy	用户输入位置
//Co2	检测数据1
//checktype	检测类型 0:单次检测 1:实时检测
//deviceversion	硬件版本
- (NSDictionary*)updateCO2ByPhone:(NSString*)phone AndLongitude:(NSString*)longitude AndLatitude:(NSString*)latitude AndCelsius:(NSString*)celsius AndDampness:(NSString*)dampness AndAddress:(NSString*)address AndPlacediy:(NSString*)placediy AndCO2:(NSString*)co2 AndCheckType:(NSString*)checkType;

//PM单次检测数据上传
//phoneno	手机号码
//longitude	经度
//latitude	纬度
//celsius	温度
//dampness	湿度
//address	定位位置
//placediy	用户输入位置
//pm	检测数据1
//pm2	检测数据2
//pm10	检测数据3
//deviceversion	硬件版本
- (NSDictionary*)updatePMByPhone:(NSString*)phone AndLongitude:(NSString*)longitude AndLatitude:(NSString*)latitude AndCelsius:(NSString*)celsius AndDampness:(NSString*)dampness AndAddress:(NSString*)address AndPlacediy:(NSString*)placediy AndPm:(NSString*)pm AndPm2:(NSString*)pm2 AndPm10:(NSString*)pm10;
@end
